<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h1>首页</h1>
<a th:href="@{/hello/testRequestMapping}">测试@RequestMapping注解的位置</a> <br>
<a th:href="@{/testRequestMapping}">测试@RequestMapping注解的value属性--->testRequestMapping</a> <br>
<a th:href="@{/test}">测试@RequestMapping注解的value属性--->test</a> <br>
<a th:href="@{/test}">测试@RequestMapping注解的method属性--->GET</a> <br>
<form th:action="@{/test}" method="post">
    <input type="submit" value="测试@RequestMapping注解的method属性">
</form>
<a th:href="@{/testGetMapping}">测试@GetMapping注解--->/testGetMapping</a> <br>
<form th:action="@{/testPostMapping}" method="post">
    <input type="submit" value="测试@PostMapping注解">
</form>
<form th:action="@{/testPut}" method="put">
    <input type="submit" value="测试form表单是否能够发送put或delete请求">
</form>
<a th:href="@{/test(username='admin', password='123')}">测试@RequestMapping注解的param属性--->/test</a> <br>
<a th:href="@{/testHeaders(username='admin', password='123')}">测试@RequestMapping注解的headers属性--->/testHeaders</a> <br>
<a th:href="@{/aaa/testAnt}">测试@RequestMapping可以匹配的ant风格的路径--->/?</a> <br>
<a th:href="@{/aaaaa/testAnt}">测试@RequestMapping可以匹配的ant风格的路径--->/*</a> <br>
<a th:href="@{/aa/aa/testAnt}">测试@RequestMapping可以匹配的ant风格的路径--->/**</a> <br>
<a th:href="@{/testPath/1/admin}">测试@RequestMapping支持路径中的占位符--->/testPath</a> <br>
</body>
</html>